package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.core.framework.base.entity.DataEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 转科记录
 * 
 * @ClassName: CdcTransferEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:06
 */
@TableName("t_cdc_bs_transfer") 
public class CdcTransferEntity extends DataEntity<CdcTransferEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//索引码
	private String xcode;	
	//就诊记录
	private Long episodeId;	
	//转科类型
	private Long busTranTypeId;	
	//转入科室
	private Long tranLocId;	
	//转入床位
	private Long tranBedId;	
	//转出科室
	private Long fromLocId;	
	//转入日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date tranDate;	
	//转出日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date fromDate;	
	//在科天数
	private Integer inLocDays;	
	//业务数据类型
	private Long dataId;	
	//是否有效
	private Integer isActive;	

	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：转科类型
	 */
	public void setBusTranTypeId(Long busTranTypeId) {
		this.busTranTypeId = busTranTypeId;
	}
	/**
	 * 获取：转科类型
	 */
	public Long getBusTranTypeId() {
		return busTranTypeId;
	}
	/**
	 * 设置：转入科室
	 */
	public void setTranLocId(Long tranLocId) {
		this.tranLocId = tranLocId;
	}
	/**
	 * 获取：转入科室
	 */
	public Long getTranLocId() {
		return tranLocId;
	}
	/**
	 * 设置：转入床位
	 */
	public void setTranBedId(Long tranBedId) {
		this.tranBedId = tranBedId;
	}
	/**
	 * 获取：转入床位
	 */
	public Long getTranBedId() {
		return tranBedId;
	}
	/**
	 * 设置：转出科室
	 */
	public void setFromLocId(Long fromLocId) {
		this.fromLocId = fromLocId;
	}
	/**
	 * 获取：转出科室
	 */
	public Long getFromLocId() {
		return fromLocId;
	}
	/**
	 * 设置：转入日期
	 */
	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}
	/**
	 * 获取：转入日期
	 */
	public Date getTranDate() {
		return tranDate;
	}
	/**
	 * 设置：转出日期
	 */
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	/**
	 * 获取：转出日期
	 */
	public Date getFromDate() {
		return fromDate;
	}
	/**
	 * 设置：在科天数
	 */
	public void setInLocDays(Integer inLocDays) {
		this.inLocDays = inLocDays;
	}
	/**
	 * 获取：在科天数
	 */
	public Integer getInLocDays() {
		return inLocDays;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
